<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>测试JQuery基本选择器</title>
		<link rel="stylesheet" type="text/css" href="css/txt.css" />
		<script type="text/javascript" src="js/jquery.js"></script>
	</head>

	<body>
		<div id="tipdiv">我们小组正在加班解决问题</div>
	</body>

	<script type="text/javascript">
		
			$(function(){
				
//			$(tipdiv).attr("class","txt");
				$("#tipdiv").attr("class","txt");
			});
		
	</script>


</html>